<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/fmt.tld" prefix="fmt"%>
<div title="维护检定信息" id="certificationSelectDialog" class="dialogtitle">
	<div class="searchbox">
		<span class="fontRed">注:</span>带"<span class="fontRed">*</span>"为必填项
		<form id="frmCertification" onSubmit="return false">
			<input type="hidden" name="id" value="<c:out value='${certification.id}'/>">
			<table id="certificationTable" cellpadding = "0" cellspacing = "0">
  				<tr>
   					<td align="right" style="width:90px;">检定证号：<span class="fontRed">*</span></td>
   					<td><input type="text" id="certificateCode" name="certificatecode" value="<c:out value='${certification.certificatecode}'/>"></td> 	
   					<td align="right" style="width:90px;">检定单位：<span class="fontRed">*</span></td>
					<td><input type="text" id="verificationUnit" name="verificationunit" value="<c:out value='${certification.verificationunit}'/>"></td>
  				</tr>
  				<tr>
   					<td align="right" style="width:90px;">器具编号：&nbsp;</td>
   					<td><input type="text" id="controlId" name="controlid" value="<c:out value='${certification.controlid}'/>"></td> 
   					<td align="right" style="width:90px;">型号/规格：&nbsp;</td>
   					<td><input type="text" id="standard" name="standard" value="<c:out value='${certification.standard}'/>"></td> 
  				</tr>
  				<tr>
					<td align="right" style="width: 90px;">检定日期：&nbsp;</td>
					<td style="width: 180px; ">
						<input type="text" id="certificateDateEdit" name="certificatedate" class="date" readonly="readonly" value="<fmt:formatDate value='${certification.certificatedate}' pattern='yyyy-MM-dd'/>"/>
					</td>
					<td align="right" style="width: 90px;">过期时间：&nbsp;</td>
					<td style="width: 180px; ">
						<input type="text" id="expireDateEdit" name="expiredate" class="date" readonly="readonly" value="<fmt:formatDate value='${certification.expiredate}' pattern='yyyy-MM-dd'/>"/>					
  					</td>
  				</tr>
  				<tr>
   					<td align="right" style="width:90px;">查询网址：&nbsp;</td>
   					<td colspan=3><input type="text" id="queryWebSite" name="querywebsite" style="width:488px;" value="<c:out value='${certification.querywebsite}'/>"></td> 	
  				</tr>
  			</table>
  		</form>
  	</div>
</div>			
<script>
	$("button").button();
	$("#certificateDateEdit").datepicker({
	      changeMonth: true,
	      numberOfMonths: 1,
	      onClose: function( selectedDate ) {
	        $( "#expireDateEdit" ).datepicker( "option", "minDate", selectedDate );
	      }
	    });
	$("#expireDateEdit").datepicker({
	      changeMonth: true,
	      numberOfMonths: 1,
	      onClose: function( selectedDate ) {
	        $( "#certificateDateEdit" ).datepicker( "option", "maxDate", selectedDate );
	      }
	    });
	$(".date").datepicker({regional:"zh-CN"});
</script>
  				
  				